/**
 * Copyright (C), 2015-2018, 成都启迪信息技术有限公司
 * FileName: KernelReportLogs
 * Author:   sjkyll
 * Date:     2018-11-30 10:29
 * Description:
 * <author>          <time>          <version>          <desc>
 * 作者姓名         修改时间           版本号            描述
 */
package com.cdqidi.smsservice.domain;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

/**
 * 〈一句话功能简述〉<br> 
 *
 * @author sjkyll
 * @create 2018-11-30 10:29
 * @since 1.0.0
 */
@Entity
@Table(name = "kernel_report_logs", schema = "smapp")
public class KernelReportLogs {
    private String autoSn;
    private Integer sequenceId;
    private Long smId;
    private String destNum;
    private String submitTime;
    private String doenTime;
    private String send;
    private Integer smscSequence;
    private Timestamp receiveTime;
    private String checkCode;


    @Id
    @Column(name = "AUTO_SN")
    public String getAutoSn() {
        return autoSn;
    }

    public void setAutoSn(String autoSn) {
        this.autoSn = autoSn;
    }

    @Basic
    @Column(name = "SEQUENCE_ID")
    public Integer getSequenceId() {
        return sequenceId;
    }

    public void setSequenceId(Integer sequenceId) {
        this.sequenceId = sequenceId;
    }

    @Basic
    @Column(name = "SM_ID")
    public Long getSmId() {
        return smId;
    }

    public void setSmId(Long smId) {
        this.smId = smId;
    }

    @Basic
    @Column(name = "DEST_NUM")
    public String getDestNum() {
        return destNum;
    }

    public void setDestNum(String destNum) {
        this.destNum = destNum;
    }

    @Basic
    @Column(name = "SUBMIT_TIME")
    public String getSubmitTime() {
        return submitTime;
    }

    public void setSubmitTime(String submitTime) {
        this.submitTime = submitTime;
    }

    @Basic
    @Column(name = "DOEN_TIME")
    public String getDoenTime() {
        return doenTime;
    }

    public void setDoenTime(String doenTime) {
        this.doenTime = doenTime;
    }

    @Basic
    @Column(name = "SEND")
    public String getSend() {
        return send;
    }

    public void setSend(String send) {
        this.send = send;
    }

    @Basic
    @Column(name = "SMSC_SEQUENCE")
    public Integer getSmscSequence() {
        return smscSequence;
    }

    public void setSmscSequence(Integer smscSequence) {
        this.smscSequence = smscSequence;
    }

    @Basic
    @Column(name = "RECEIVE_TIME")
    public Timestamp getReceiveTime() {
        return receiveTime;
    }

    public void setReceiveTime(Timestamp receiveTime) {
        this.receiveTime = receiveTime;
    }

    @Basic
    @Column(name = "CHECK_CODE")
    public String getCheckCode() {
        return checkCode;
    }

    public void setCheckCode(String checkCode) {
        this.checkCode = checkCode;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        KernelReportLogs that = (KernelReportLogs) o;
        return Objects.equals(autoSn, that.autoSn) &&
                Objects.equals(sequenceId, that.sequenceId) &&
                Objects.equals(smId, that.smId) &&
                Objects.equals(destNum, that.destNum) &&
                Objects.equals(submitTime, that.submitTime) &&
                Objects.equals(doenTime, that.doenTime) &&
                Objects.equals(send, that.send) &&
                Objects.equals(smscSequence, that.smscSequence) &&
                Objects.equals(receiveTime, that.receiveTime) &&
                Objects.equals(checkCode, that.checkCode);
    }

    @Override
    public int hashCode() {
        return Objects.hash(autoSn, sequenceId, smId, destNum, submitTime, doenTime, send, smscSequence, receiveTime, checkCode);
    }
}